//
//  LineDefaultTableCell.m
//  MiaoTu
//
//  Created by dllo on 16/9/9.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "LineDefaultTableCell.h"

@interface LineDefaultTableCell ()
@property (nonatomic, strong) UILabel *defaultLabel;

@end

@implementation LineDefaultTableCell

- (void)setLabelText:(NSString *)labelText {
    _labelText = labelText;
    
    _defaultLabel.text = _labelText;
    _defaultLabel.numberOfLines = 0;
    [_defaultLabel sizeToFit];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _defaultLabel = [UILabel new];
        [self.contentView addSubview:_defaultLabel];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    _defaultLabel.center = self.contentView.center;
    _defaultLabel.textAlignment = NSTextAlignmentCenter;
    _defaultLabel.textColor = [UIColor colorWithWhite:0.647 alpha:1.000];
}

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
